package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import com.arpa.wms.domain.entity.Delivery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


/**
 * <p>
 * 打包任务DTO
 * </p>
 *
 * @author rfwang
 * @since 2020-06-29
 */
@Data
@ApiModel(value="PackTaskDTO对象", description="打包任务")
public class PackTaskDTO extends BasicEntity {

    @ApiModelProperty(value = "打包任务单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;

    @ApiModelProperty(value = "单据类型,normal：普通打包，prepackaged预打包")
    private String orderType;

    @ApiModelProperty(value = "作业类型 pack:打包，paste:贴单，pack_paste:打包和贴单")
    private String jobType;

    /**
     * 承运商编码
     */
    @ApiModelProperty(value = "承运商编码")
    private String carrierCode;

    /**
     * 承运商名称
     */
    @ApiModelProperty(value = "承运商名称")
    private String carrierName;

    @ApiModelProperty(value = "订单数量")
    private Integer orderQuantity;

    @ApiModelProperty(value = "商品数量")
    private Integer goodsQuantity;

    @ApiModelProperty(value = "计费方式:days天, hours工时, pieces件")
    private String billingMethod;


    @ApiModelProperty(value = "计费单价")
    private BigDecimal billingPrice;

    @ApiModelProperty(value = "作业人标识")
    private String partyCode;

    @ApiModelProperty(value = "作业人名称")
    private String staffName;

    @ApiModelProperty(value = "完成时间")
    private String gmtFinish;

    @ApiModelProperty(value = "是否生成费用 0-否，1-是")
    private Integer genCosts;

    @ApiModelProperty(value = "状态：waiting待打，completed打包完成")
    private String status;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "订单集合")
    private List<Delivery> deliveryList;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "打包任务code集合")
    private List<String> packTaskCodes;

    @ApiModelProperty(value = "预打包单号")
    private String prepackagedCode;

    @ApiModelProperty(value = "包裹数量")
    private Integer packageQuantity;

    @ApiModelProperty(value = "已打包包裹总数")
    private Integer packQuantity;

    @ApiModelProperty(value = "订单数量下限")
    private BigDecimal orderQuantityStart;

    @ApiModelProperty(value = "订单数量上限")
    private BigDecimal orderQuantityEnd;

    @ApiModelProperty(value = "计费单价下限")
    private BigDecimal billingPriceStart;

    @ApiModelProperty(value = "计费单价上限")
    private BigDecimal billingPriceEnd;

    @ApiModelProperty(value = "商品数量下限")
    private BigDecimal goodsQuantityStart;

    @ApiModelProperty(value = "商品数量上限")
    private BigDecimal goodsQuantityEnd;

    @ApiModelProperty(value = "完成时间下限")
    private String gmtFinishStart;

    @ApiModelProperty(value = "完成时间上限")
    private String gmtFinishEnd;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "奖励金额")
    private BigDecimal rewardAmount;

    @ApiModelProperty(value = "惩罚金额")
    private BigDecimal punishAmount;

    @ApiModelProperty(value = "奖励金额下限")
    private BigDecimal rewardAmountStart;

    @ApiModelProperty(value = "奖励金额上限")
    private BigDecimal rewardAmountEnd;

    @ApiModelProperty(value = "惩罚金额下限")
    private BigDecimal punishAmountStart;

    @ApiModelProperty(value = "惩罚金额上限")
    private BigDecimal punishAmountEnd;


}
